package org.dandelion.papercheck.service;

import org.dandelion.papercheck.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface UserService {

    User login(String username, String password);

    String generateJWT(User user);

    Boolean checkUsernameDup(String username);

    User register(String username, String password, String phone, String email);

    User resetPwd(User user, String password);

    List<User> getUserList(Integer size, Integer page);

    Boolean changeIsVip(Long userId, Boolean isVip);

}
